const dbutil = require('../../../libs/MyDB');

module.exports = {
    getMenuInfo: async function () {
        let menus = [];
        await dbutil.multiSelect('res_menu', '*')
            .then(
                result => {
                    menus = result;
                }
            )
        return {
            code: 0,
            msg: "查询成功",
            data: menus,
            count: menus.length,
        }
    }
}